package com.lantosec.hmrp.modules.internal.mapper;

import com.lantosec.hmrp.modules.internal.entity.InternalItem;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lantosec.hmrp.modules.internal.entity.InternalType;
import com.lantosec.hmrp.modules.internal.vo.InternalItemVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 项目定义 Mapper 接口
 * </p>
 *
 * @author AutoCode
 * @since 2020-04-22
 */
public interface InternalItemMapper extends BaseMapper<InternalItem> {

    String queryMaxId();

    List<InternalItemVO> getAll(@Param("internalItemName") String internalItemName,
                                @Param("internalItemType") Integer internalItemType, @Param("internalTypeId") Integer internalTypeId);

    /**
     * 查询项目分类
     * @param internalItemType
     * @return
     */
    List<InternalType> getItemType(Integer internalItemType);
}
